package com.sinosoft.dsp.platform.components.portal.iteration;

import java.util.ArrayList;
import java.util.List;

import com.sinosoft.dsp.system.core.exception.SinoException;
import com.sinosoft.dsp.system.to.IGenericTO;

/**
 * 懒加载的行记录抽象对象视图
 * 
 * @author 潘巍（PeterPan）
 * @since 2011-5-26 上午10:12:41
 * 
 */
public abstract class SinoAbstractLazyRowDataTableViewBean extends
		SinoAbstractLazyDataTableViewBean<RowDataTableObject> implements
		ISinoLazyRowDataTableViewBean {
	@Override
	public void init(IGenericTO tos) throws SinoException {
		super.init(tos);
		this.header = initHeader(tos);
	}

	@Override
	public List<DataTableHeaderObject> getHeader() {
		if (header == null) {
			return new ArrayList<DataTableHeaderObject>();
		}
		return header;
	}

	@Override
	public void addHeader(DataTableHeaderObject header) {
		this.header.add(header);
	}
}
